#include "stdafx.h"
#include "Dwarf.h"


CDwarf::CDwarf(std::string const & type, std::string const & direction, std::string const & state)
	: m_type(type)
	, m_direction(direction)
	, m_state(state)
{
}

std::string CDwarf::GetDwarfType() const
{
	return m_type;
}

std::string CDwarf::GetDirection() const
{
	return m_direction;
}

std::string CDwarf::GetState() const
{
	return m_state;
}

void CDwarf::SetDirection(std::string const & newDirection)
{
	if (newDirection != "")
	{
		m_direction = newDirection;
		std::cout << "my current direction " << m_direction << std::endl;
	}
}

void CDwarf::SetState(std::string const & newState)
{
	if (newState != "")
	{
		m_state = newState;
		//std::cout << "my currect state " << m_state << std::endl;
	}
}

void CDwarf::Go()
{
	SetState(MOVES);
	std::cout << "I'm going" << std::endl;
}

void CDwarf::Stop()
{
	SetState(STANDS);
	std::cout << "I'm stopped" << std::endl;
}

void CDwarf::Say() const
{
	std::cout << "Hello!";
}

void CDwarf::Attack()
{
	std::cout << "I'm not warrior. I can't attack." << std::endl;
}

CDwarf::~CDwarf(){}